import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description: 牛客网.入门题.求绝对值，平方根，对数，正弦值
 */

class Main {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        double num = scanner.nextDouble();

        //write your code here......
        System.out.println(Math.abs(num));
        System.out.println(Math.sqrt(num));
        System.out.println(Math.log(num));
        System.out.println(Math.sin(num));
    }
}

public class Test {
}
